package org.feiye.studyday02.practice;

public class ChangeCard {

	public static void main(String[] args) {
		// 书上第二章练习2
		int leftCard = 10;
		int rightCard = 8;
		System.out.println("输出互换前手中的纸牌：");
		System.out.println("左手中的纸牌：" + leftCard);
		System.out.println("右手中的纸牌：" + rightCard);
		System.out.println("");
		int temp = leftCard;
		leftCard = rightCard;
		rightCard = temp;
		System.out.println("输出互换后手中的纸牌：");
		System.out.println("左手中的纸牌：" + leftCard);
		System.out.println("右手中的纸牌：" + rightCard);
	}

}
